import { POST } from '@/services/request'
//导出接口
const base = {
    home(data = {}) {
        return POST({
            url: '/product/home',
            params: data
        })
    },
    categoryIndex(data = {}) {
        return POST({
            url: '/product/category',
            params: data
        })
    },
    categoryInfo(data={}){
        return POST({
            url: '/product/categoryinfo',
            params: data
        })
    },
    categoryCollection(data={}){
        return POST({
            url: '/product/categoryCollection',
            params: data
        })
    },
    RentalIndex(data = {}) {
        return POST({
            url: '/product/rental',
            params: data
        })
    },
    RentalInfo(data={}){
        return POST({
            url: '/product/proinfo',
            params: data
        })
    },
    RentalCollection(data={}){
        return POST({
            url: '/product/proCollection',
            params: data
        })
    },
    RentalList(data = {}) {
        return POST({
            url: '/product/list',
            params: data
        })
    },
    RentalAdd(data = {}) {
        return POST({
            url: '/product/leaseadd',
            params: data
        })
    },
}
export default base